/*    */ package com.yss.sofa.cml.print;
/*    */ 
/*    */ import com.yss.sofa.cml.Paper;
/*    */ 
/*    */ public class PrintPaper extends Paper
/*    */ {
/*    */   private static final long serialVersionUID = 1L;
/*    */   private float printAreaX;
/*    */   private float printAreaY;
/*    */   private float printAreaWidth;
/*    */   private float printAreaHeight;
/*    */   private String displayName;
/*    */ 
/*    */   public PrintPaper(String name, String displayName, float x, float y, float areaWidth, float areaHeight, float width, float height)
/*    */   {
/* 15 */     super(name, width, height);
/* 16 */     this.printAreaX = x;
/* 17 */     this.printAreaY = y;
/* 18 */     this.printAreaWidth = areaWidth;
/* 19 */     this.printAreaHeight = areaHeight;
/* 20 */     this.displayName = displayName;
/*    */   }
/*    */ 
/*    */   public PrintPaper(Paper paper) {
/* 24 */     this(paper.getName(), paper.getName(), 0.0F, 0.0F, paper.getWidth(), paper.getHeight(), paper.getWidth(), paper.getHeight());
/*    */   }
/*    */ 
/*    */   public float getPrintAreaX() {
/* 28 */     return this.printAreaX;
/*    */   }
/*    */ 
/*    */   public float getPrintAreaY() {
/* 32 */     return this.printAreaY;
/*    */   }
/*    */ 
/*    */   public float getPrintAreaWidth() {
/* 36 */     return this.printAreaWidth;
/*    */   }
/*    */ 
/*    */   public float getPrintAreaHeight() {
/* 40 */     return this.printAreaHeight;
/*    */   }
/*    */ 
/*    */   public String getDisplayName() {
/* 44 */     return this.displayName;
/*    */   }
/*    */ 
/*    */   public boolean equals(Object obj)
/*    */   {
/* 49 */     if ((obj instanceof Paper)) {
/* 50 */       return getName().equalsIgnoreCase(((Paper)obj).getName());
/*    */     }
/* 52 */     return false;
/*    */   }
/*    */ 
/*    */   public String toString()
/*    */   {
/* 57 */     return getDisplayName();
/*    */   }
/*    */ 
/*    */   public String getDescription() {
/* 61 */     return getName() + " Area(" + this.printAreaX + "," + this.printAreaY + "," + this.printAreaWidth + "," + this.printAreaHeight + ") Size(" + this.width + " mm, " + this.height + " mm)";
/*    */   }
/*    */ }

/* Location:           X:\repository\com\yss\sofa\cml\cml-api\1.1.0\cml-api-1.1.0.jar
 * Qualified Name:     com.yss.sofa.cml.print.PrintPaper
 * JD-Core Version:    0.6.0
 */